<?php
class MySQLModel extends Model {
    function get(string $id, string $table) {
        mysql_connect($config['host'], $config['user'], $config['pass']);
        mysql_select_db($config['database']);
        $result = mysql_query('SELECT '.$id.' FROM '.$table);
        return mysql_fetch_object($result);
    }
}
?>
